package com.kangfu.db.mapper;

import com.kangfu.db.domain.entity.Lesson;
import com.kangfu.db.domain.entity.UserPrescription;
import com.kangfu.db.domain.entity.UserPrescriptionLesson;
import com.kangfu.db.model.bo.RecommendLessonBo;
import com.kangfu.db.model.vo.UserPrescriptionLessonInfoVo;
import com.kangfu.db.model.vo.UserPrescriptionLessonVo;
import com.kangfu.db.model.vo.UserPrescriptionLessonWeekVo;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 课程视频Mapper接口
 * 
 * @author ruoyi
 * @date 2022-08-14
 */
public interface LessonMapper 
{

    /**
     * 获取用户运动处方累计打卡次数
     * @param userId
     * @return
     */
    public Integer getCheckinCountByUserId(@Param("userId") int userId);



    /**
     * 获取用户某个运动处方
     * @param id
     * @return
     */
    public UserPrescription getUserPrescriptionById(Integer id);

    /**
     * 获取某个课程的详情
     * @param id
     * @return
     */
    public Lesson getLessonInfoById(Integer id);


    public List<String> getUrlListByItemId(@Param("itemId") Integer itemId);


    public List<Lesson> selectLessonList(@Param("lessonIds") String lessonIds);


    /**
     * 添加课程总打卡人数
     * @param lessonId
     * @return
     */
    public Integer checkin(@Param("lessonId") int lessonId);
}
